#ifndef SNAKEGAME_H
#define SNAKEGAME_H

#include <QVector>
#include <QPoint>
#include <QRect>
#include <QString>
#include <QDate>

class Snake;

class Game{
public:
    Game();
    void setup(QString p, int cl, int gx, int gy);
    void start();
    void setData(QString p, int l, int s, QDate d);
    void restartGame(int l, int s, QVector<QPoint> b, QPoint e);
    QRect getWall();
    int getLevel();
    int getScores();
    QString getPlayer();
    QDate getDate();
    Snake* getSnake();
    QVector<QPoint>& getSnakeBody();
    QPoint getSnakeHead();
    QPoint createEat();
    QPoint getEat();
    void save(FILE* arq);

private:
    Snake* snake;
    QRect wall;
    int cellLenght;
    int grid_x;
    int grid_y;
    int level;
    int scores;
    QPoint eat;
    QString player;
    QDate date;
};


#endif // SNAKEGAME_H
